home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 4⁄13⁄90 / 1090-Re[2] MacApp and cod-Apr90 < prev    next >
Encoding:
Text File  |  1990-04-16  |  1.0 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    4721248                         12-April-90        15:53PDT
  4.  
  5. From:   ROSENSTEIN1                     Rosenstein, Larry
  6.  
  7. To:     POWERUP.ENG                     Power Up Software,PRT
  8.         MACAPP.TECH$                    MacApp Technical
  9.  
  10. Sub:    RE>Re-MacApp and code res
  11.  
  12. Attn: James Plamondon
  13. Attn:   MacApp Tech
  14. SentBy: Larry Rosenstein
  15.         Reply to:   RE>Re-MacApp and code resour
  16. James,
  17.  
  18. Your idea of a RequestService routine would certainly work.  Alternatively,
  19. you can pass to the external resource a pointer to a dispatch table for each
  20. of the routines in the main program that the resource might need to access.
  21. Then you can provide glue code for the external resource writer that accesses
  22. the proper dispatch table entry.
  23.  
  24. This avoid the ugly CASE statement.  The routines in the dispatch table must
  25. be normal procedures/functions (as opposed to methods).  Also, you can
  26. customize each routine, rather than using a single RequestService interface
  27. with a selector parameter.
  28.  
  29. Larry
  30.  
  31.  
  32.